package com.getpebble.android.common.model;

public enum ConnectionStatus {
    UNKNOWN(0),
    DISCONNECTED(10),
    CONNECTING(20),
    CONNECTED(30);
    
    private final int mStatus;

    private ConnectionStatus(int goal) {
        this.mStatus = goal;
    }

    public int getIntValue() {
        return this.mStatus;
    }

    public static ConnectionStatus fromInt(int i) {
        for (ConnectionStatus g : values()) {
            if (g.getIntValue() == i) {
                return g;
            }
        }
        return UNKNOWN;
    }
}
